﻿<!--#include file="include/config.asp"-->
<!--#include file="include/money_ratio.asp"-->
<!--#include file="include/conn_f.asp"-->
<!--#include file="include/md5.asp"-->
<!--#include file="top.asp"-->
<!--#include file="left.asp"-->
<%
orders_id=left(request("orders_id"),7)

If Session("cust_id")="" Then
    Response.Write  "操作操时,请先登录"
    Response.End
End If
If orders_id="" Then
    Response.Write  "操作操时,请重下定单"
    Response.End
End If

sql="select cust_id,card_1,total_amount,IPCOUNTRY from orders where orders_id="&orders_id
Set rs=conn.execute(sql)
If Not rs.eof Then
    total_amount=rs("total_amount")
    cust_id=rs("cust_id")
    card_id=rs("card_1")
    IPCOUNTRY=rs("IPCOUNTRY")
Else
    Response.Write "无此定单号,请重下定单"
    Response.End
End If

sql="select * from customer where cust_id="&cust_id
Set rs=conn.execute(sql)
If Not rs.eof Then
    credit_limit=ccur(rs("credit_limit"))
    ISVIP=cint(rs("VIP"))
    isactive=cint(rs("isactive"))
End If

If clng(cust_id)<>clng(Session("cust_id")) Then
    Response.Write "无此定单号,请重下定单"
    Response.End
End If

total_amount_cc=total_amount+ADD_FEE

total_paypal_USD=FormatNumber( total_amount_cc*(1+PAYPAL_RT)*BASE_RT/USD_RATIO,2 )
total_paypal_CAD=FormatNumber( total_amount_cc*(1+PAYPAL_RT)*BASE_RT/CAD_RATIO,2 )
total_paypal_GBP=FormatNumber( total_amount_cc*(1+PAYPAL_RT)*BASE_RT/GBP_RATIO )
total_paypal_EUR=FormatNumber( total_amount_cc*(1+PAYPAL_RT)*BASE_RT/EUR_RATIO )
total_paypal_AUD=FormatNumber( total_amount_cc*(1+PAYPAL_RT)*BASE_RT/AUD_RATIO )

total_google=FormatNumber( total_amount_cc*(1+GOOGLE_RT)*BASE_RT/USD_RATIO )

total_MB_USD=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/USD_RATIO )
total_MB_CAD=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/CAD_RATIO )
total_MB_EUR=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/EUR_RATIO )
total_MB_GBP=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/GBP_RATIO )
total_MB_AUD=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/AUD_RATIO )
total_MB_JPY=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/JPY_RATIO,-1,-1,-1,0 )
total_MB_SGD=FormatNumber( total_amount_cc*(1+MB_RT)*BASE_RT/SGD_RATIO )

total_WU_USD=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/USD_RATIO )
total_WU_CAD=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/CAD_RATIO )
total_WU_EUR=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/EUR_RATIO )
total_WU_GBP=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/GBP_RATIO )
total_WU_AUD=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/AUD_RATIO )
total_WU_JPY=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/JPY_RATIO )
total_WU_SGD=FormatNumber( total_amount*(1+WSTU_RT)*BASE_RT/SGD_RATIO )

total_TT_USD=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/USD_RATIO )
total_TT_CAD=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/CAD_RATIO )
total_TT_EUR=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/EUR_RATIO )
total_TT_GBP=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/GBP_RATIO )
total_TT_AUD=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/AUD_RATIO )
total_TT_JPY=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/JPY_RATIO )
total_TT_SGD=FormatNumber( total_amount*(1+TT_RT)*BASE_RT/SGD_RATIO )

total_ukaccount=formatNumber(total_amount*(1+UK_RT)*BASE_RT/GBP_RATIO)
total_caaccount=formatNumber(total_amount*(1+CA_RT)*BASE_RT/CAD_RATIO)

Session("itemnumber")=orders_id
to_md5=orders_id&"h79k2qpz04"
item_number_md5=MD5(to_md5)

%>
<center>
    <font color='red' size='3'>重要提示:<br />
        请不要使用他人信用卡付款!!<br />
        使用他人信用卡将作退款处理,给您的定单造成延误!</font><br />
</center>
<table align="center" width="150" class="unnamed1" valign="top" border="0">
    <tr>
        <td>
            请记住此定单号:<font color="red"><%=orders_id%></font>
        </td>
    </tr>
    <tr>
        <td>
            总计金额:<font color="red"><%=total_amount%></font>元(人民币)
        </td>
    </tr>
</table>
<br />
<table align="center" class="unnamed1" width="720" border="1" cellspacing="0">
    <tr>
        <td width="200" align="center">
            支付方式
        </td>
        <td width="80">
            手续费
        </td>
        <td width="220" align="center">
            应付金额
        </td>
        <td width="180">
            付款链接
        </td>
    </tr>
    <%
If isactive=0 or isactive=1 Then
    %>
    <tr>
        <td align="center">
            会员帐户支付
        </td>
        <td>
            0
        </td>
        <td>
            <%=total_amount%>元人民币（RMB)
        </td>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="paybybalance.asp">
                <tr>
                    <td>
                        <input type="hidden" name="orderid" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_amount%>">
                        <input name="Submit" type="submit" value="会员帐户支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
    </tr>
    <%
End If
    %>
    <tr>
        <td align="center">
            <font color='red'>英国银行转帐</font>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            英磅(GBP):<%=total_ukaccount%><br />
        </td>
        <td>
            <%
    If HSBCUK_ENABLE=1 Then
        If isvip=1 Then
            %>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="ukaccount.asp">
                <tr>
                    <td>
                        <input type="hidden" name="order_id" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_ukaccount%>">
                        <input type="submit" value="英国银行转帐" name="v_action">
                    </td>
                </tr>
                </form>
            </table>
            <%
        Else
            Response.Write "VIP Only !"
        End If
    Else
        Response.Write "temporary unavailable !"
    End If
            %>
        </td>
    </tr>
    <%
If HSBCCA_enable=1 Then
    %>
    <tr>
        <td align="center">
            <font color='red'>加拿大银行转帐</font>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            加元(CAD):<%=total_caaccount%><br />
        </td>
        <td>
            <%
        If isvip=1 Then
            %>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="caaccount.asp">
                <tr>
                    <td>
                        <input type="hidden" name="order_id" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_caaccount%>">
                        <input type="submit" value="加拿大银行转帐" name="v_action">
                    </td>
                </tr>
                </form>
            </table>
            <%
        Else
            Response.Write "VIP Only !"
        End If	
            %>
        </td>
    </tr>
    <%
End If
    %>
    <tr>
        <td align="center">
            <font color='red'>西联汇款
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            美元(USD):<%=total_wu_USD%>
            加元(CAD):<%=total_wu_CAD%><br />
            英磅(GBP):<%=total_wu_GBP%>
            欧元(EUR):<%=total_wu_EUR%><br />
            澳元(AUD):<%=total_wu_AUD%>
        </td>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="wu_account.asp">
                <tr>
                    <td>
                        <input type="hidden" name="orders_id" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_amount%>">
                        <input type="submit" value="西联汇款付款" name="v_action">
                    </td>
                </tr>
                </form>
            </table>
        </td>
    </tr>
    <%
If TT_enabled=1 Then	'TT payment method
    If total_amount>=500 or isactive>1 Then
    %>
    <tr>
        <td align="center">
            <font color='red'>银行电汇(T/T)</font><br />
            全世界的银行都可以汇<br />
            下一个工作日到帐.
        </td>
        <td>
            优惠5%
        </td>
        <td>
            美元(USD):<%=total_TT_USD%>&nbsp;&nbsp;加元(CAD):<%=total_TT_CAD%><br />
            英磅(GBP):<%=total_TT_GBP%>&nbsp;&nbsp;欧元(EUR):<%=total_TT_EUR%><br />
            澳元(AUD):<%=total_TT_AUD%>&nbsp;&nbsp;新币(SGD):<%=total_TT_SGD%><br />
            日元(JPY):<%=total_TT_JPY%><br />
        </td>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="tt_account.asp">
                <tr>
                    <td>
                        <input type="hidden" name="orders_id" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_amount%>">
                        <input type="submit" value="银行电汇" name="v_action">
                    </td>
                </tr>
                </form>
            </table>
        </td>
    </tr>
    <%
    Else
    %>
    <tr>
        <td align="center">
            <font color='red'>银行电汇(T/T)</font><br />
            全世界的银行都可以汇<br />
            下一个工作日到帐.
        </td>
        <td>
            优惠5%
        </td>
        <td>
            美元(USD):<%=total_TT_USD%>&nbsp;&nbsp;加元(CAD):<%=total_TT_CAD%><br />
            英磅(GBP):<%=total_TT_GBP%>&nbsp;&nbsp;欧元(EUR):<%=total_TT_EUR%><br />
            澳元(AUD):<%=total_TT_AUD%>&nbsp;&nbsp;新币(SGD):<%=total_TT_SGD%><br />
            日元(JPY):<%=total_TT_JPY%><br />
        </td>
        <td>
            <font color='red'>不适应</font><br />
            金额太小,手续费太高.
        </td>
    </tr>
    <%
    End If
End If


If ((ipcountry<>"CN" and ipcountry<>"TW" and ipcountry<>"KR" and  ipcountry<>"TH" and  ipcountry<>"VE") or isvip=1)  and isactive<>2 and isactive<>3 Then 
    If card_id<>485 and card_id<>475 and card_id<>483 and card_id<>2 Then
    %>
    <tr>
        <td rowspan="5" align="center">
            <img src="image/visa.gif"><img src="image/mastercard.gif"><br />
            <img src="image/paypal_logo.gif"><br />
            <font color="red">VISA MasterCard</font><br />
            <font color="blue">(通过Paypal)</font><br />
            <a href="http://www.cardinchina.com/whynotpay.asp" target="_blank"><font color="red">
                我无法支付?!</font></a>&nbsp;&nbsp; <a href="http://www.cardinchina.com/help/" target="_blank">
                    支付帮助</a><br />
            若不能付款,请换用Moneybooker
        </td>
        <td rowspan="5">
            0.37美元
        </td>
        <td>
            美元(USD):&nbsp;<%=total_paypal_USD%>
        </td>
        <%
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<%=MY_PAYPAL_ACCOUNT%>">
                        <input type="hidden" name="item_name" value="<%=item_name%>">
                        <input type="hidden" name="item_number" value="<%=item_number%>">
                        <input type="hidden" name="quantity" value="1">
                        <input type="hidden" name="invoice" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_paypal_USD%>">
                        <input type="hidden" name="currency_code" value="USD">
                        <input type="hidden" name="country_code" value="US">
                        <input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=<%=orders_id%>&order_str=<%=item_number_md5%>">
                        <input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        <input type="submit" value="Paypal 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
    </tr>
    <%
        Else
    %>
    <td rowspan="5">
        <font color="red">定单金额超过当月Paypal支付限额</font><br />
        请:&nbsp;<a href="account_verify.asp">(1)验证Paypal帐号&gt;&gt;</a><br />
        或&nbsp;(2)联系工作人员提额(视条件)<br />
        或&nbsp;(3)下月购买<br />
        或&nbsp;(4)用其他支付方式
    </td>
    </tr>
    <%
        End If
    %>
    <tr>
        <td>
            加拿大元(CAD):&nbsp;<%=total_paypal_CAD%>
        </td>
        <%
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<%=MY_PAYPAL_ACCOUNT%>">
                        <input type="hidden" name="item_name" value="<%=item_name%>">
                        <input type="hidden" name="item_number" value="<%=item_number%>">
                        <input type="hidden" name="quantity" value="1">
                        <input type="hidden" name="invoice" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_paypal_CAD%>">
                        <input type="hidden" name="currency_code" value="CAD">
                        <input type="hidden" name="country_code" value="CA">
                        <input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=<%=orders_id%>&order_str=<%=item_number_md5%>">
                        <input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        <input type="submit" value="Paypal 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
        End If
        %>
    </tr>
    <tr>
        <td>
            英磅(GBP):&nbsp;<%=total_paypal_GBP%>
        </td>
        <%
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<%=MY_PAYPAL_ACCOUNT%>">
                        <input type="hidden" name="item_name" value="<%=item_name%>">
                        <input type="hidden" name="item_number" value="<%=item_number%>">
                        <input type="hidden" name="quantity" value="1">
                        <input type="hidden" name="invoice" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_paypal_GBP%>">
                        <input type="hidden" name="currency_code" value="GBP">
                        <input type="hidden" name="country_code" value="GB">
                        <input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=<%=orders_id%>&order_str=<%=item_number_md5%>">
                        <input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        <input type="submit" value="Paypal 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
        End If
        %>
    </tr>
    <tr>
        <td>
            欧元(EUR):&nbsp;<%=total_paypal_EUR%>
        </td>
        <%
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<%=MY_PAYPAL_ACCOUNT%>">
                        <input type="hidden" name="item_name" value="<%=item_name%>">
                        <input type="hidden" name="item_number" value="<%=item_number%>">
                        <input type="hidden" name="quantity" value="1">
                        <input type="hidden" name="invoice" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_paypal_EUR%>">
                        <input type="hidden" name="currency_code" value="EUR">
                        <input type="hidden" name="country_code" value="FR">
                        <input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=<%=orders_id%>&order_str=<%=item_number_md5%>">
                        <input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        <input type="submit" value="Paypal 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
        End If
        %>
    </tr>
    <tr>
        <td>
            澳大利亚元(AUD):&nbsp;<%=total_paypal_AUD%>
        </td>
        <%
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<%=MY_PAYPAL_ACCOUNT%>">
                        <input type="hidden" name="item_name" value="<%=item_name%>">
                        <input type="hidden" name="item_number" value="<%=item_number%>">
                        <input type="hidden" name="quantity" value="1">
                        <input type="hidden" name="invoice" value="<%=orders_id%>">
                        <input type="hidden" name="amount" value="<%=total_paypal_AUD%>">
                        <input type="hidden" name="currency_code" value="AUD">
                        <input type="hidden" name="country_code" value="AU">
                        <input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=<%=orders_id%>&order_str=<%=item_number_md5%>">
                        <input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        <input type="submit" value="Paypal 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
        End If
        %>
    </tr>
    <%
    End If
    %>
    <tr>
        <td rowspan="7" align="center">
            <img src="image/mrc_logos.gif"><br />
            <img src="image/mb_logo.jpg"><br />
            <font color='red'>VISA MASTERCARD JCB
                <br />
                英国SOLO/新加坡ENETS/<br />
                德国giroPay/澳大利亚Poli等</font><br />
            <font color="blue">(通过Moneybooker)</font><br />
            <a href="http://www.moneybookers.com/app/faq.pl" target="_blank">Moneybooker使用说明</a><br />
        </td>
        <td rowspan="7">
            0.37美元
        </td>
        <td>
            欧元(EUR):&nbsp;<%=total_mb_EUR%>
        </td>
        <%
    If isvip=1  Then
        If total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="amount" value="<%=total_MB_EUR%>">
                        <input type="hidden" name="currency" value="EUR">
                        <input type="hidden" name="logo_url" value="https://www.cardinchina.comimage/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payments" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="ACC">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
        Else
        %>
        <td rowspan="7">
            <font color="red">定单金额超过当月信用卡支付限额</font><br />
            请:&nbsp;(1)联系工作人员提额(视条件)<br />
            或&nbsp;(2)下月购买<br />
            或&nbsp;(3)用其他支付方式
        </td>
    </tr>
    <%
        End If
    Else
        Response.Write "<td rowspan=7>VIP only </td></tr>"
    End If
    %>
    </TR>
    <tr>
        <td>
            英磅(GBP):&nbsp;<%=total_mb_GBP%>
        </td>
        <%
    If isvip=1  and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_GBP%>">
                        <input type="hidden" name="currency" value="GBP">
                        <input type="hidden" name="country" value="GBR">
                        <input type="hidden" name="logo_url" value="https://www.cardinchina.comimage/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="SLO">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td>
            美元(US):&nbsp;<%=total_MB_USD%>
        </td>
        <%
    If isvip=1 and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_USD%>">
                        <input type="hidden" name="currency" value="USD">
                        <input type="hidden" name="logo_url" value="https://www.cardinchina.comimage/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="ACC">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td>
            加拿大元(CAD):&nbsp;<%=total_mb_CAD%>
        </td>
        <%
    If isvip=1  and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_CAD%>">
                        <input type="hidden" name="currency" value="CAD">
                        <input type="hidden" name="country" value="CAN">
                        <input type="hidden" name="logo_url" value="https://www.cardinchina.comimage/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="ACC">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td>
            澳大利亚元(AUD):&nbsp;<%=total_mb_AUD%>
        </td>
        <%
    If isvip=1 and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_AUD%>">
                        <input type="hidden" name="currency" value="AUD">
                        <input type="hidden" name="country" value="AUS">
                        <input type="hidden" name="logo_url" value="https://www.cardinchina.comimage/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="ACC">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td>
            日元(JPY):&nbsp;<%=total_mb_JPY%>
        </td>
        <%
    If isvip=1  and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_JPY%>">
                        <input type="hidden" name="currency" value="JPY">
                        <input type="hidden" name="country" value="JPN">
                        <input type="hidden" name="logo_url" value="image/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="JCB">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td>
            新加坡元(SGD):&nbsp;<%=total_mb_SGD%>
        </td>
        <%
    If isvip=1  and total_amount<=credit_limit Then
        %>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form action="https://www.moneybookers.com/app/payment.pl" method="post">
                <tr>
                    <td>
                        <input type="hidden" name="pay_to_email" value="<%=MY_MB_ACCOUNT%>">
                        <input type="hidden" name="status_url" value="http://www.cardinchina.com/com/mb_notify.asp">
                        <input type="hidden" name="language" value="CN">
                        <input type="hidden" name="amount" value="<%=total_MB_SGD%>">
                        <input type="hidden" name="currency" value="SGD">
                        <input type="hidden" name="country" value="SGP">
                        <input type="hidden" name="logo_url" value="image/logo.gif">
                        <input type="hidden" name="transaction_id" value="<%=orders_id%>">
                        <input type="hidden" name="return_url" value="http://www.cardinchina.com/processing.asp">
                        <input type="hidden" name="detail1_description" value="<%=item_number%>">
                        <input type="hidden" name="detail1_text" value="<%=item_name%>">
                        <input type="hidden" name="payment_methods" value="ACC">
                        <input type="submit" value="Moneybooker 支付">
                    </td>
                </tr>
                </form>
            </table>
        </td>
        <%
    End If
        %>
    </tr>
    <tr>
        <td align="center">
            <img src="image/visa.gif"><img src="image/mastercard.gif"><br />
            <img src="image/googleSMBLogo.gif" width="100"><br />
            <font color="red">VISA MasterCard </font>
            <br />
            <font color="blue">(通过Google Checkout) </font>
        </td>
        <td>
            0.37美元
        </td>
        <td>
            美元(USD):&nbsp;<%=total_google%>
        </td>
        <td>
            <%
    If total_amount<=credit_limit Then
            %>
            <form method="POST" action="https://checkout.google.com/cws/v2/Merchant/416123514050895/checkoutForm"
            accept-charset="utf-8">
            <input type="hidden" name="item_merchant_id_1" value="<%=orders_id%>" />
            <input type="hidden" name="item_name_1" value="deposit(invoiceID:<%=orders_id%>)" />
            <input type="hidden" name="item_description_1" value="deposit(invoiceID:<%=orders_id%>)" />
            <input type="hidden" name="item_quantity_1" value="1" />
            <input type="hidden" name="item_price_1" value="<%=total_google%>" />
            <input type="hidden" name="item_currency_1" value="USD" />
            <input type="hidden" name="continue_url" value="http://www.cardinchina.com/processing.asp" />
            <input type="hidden" name="shopping-cart.items.item_1.digital-content.display-disposition"
                value="OPTIMISTIC" />
            <input type="hidden" name="shopping-cart.items.item_1.digital-content.description"
                value="请您付款成功几小时后登陆到会员帐号查询卡号和密码和相关处理信息&amp;lt;a href=&quot;http://www.cardinchina.com&quot;&amp;gt;account page&amp;lt;/a&amp;gt;." />
            <input type="hidden" name="_charset_" />
            <input type="submit" name="Google Checkout" value="Google Checkout">
            </form>
            <%
    End If
            %>
        </td>
    </tr>
    <%
End If



If sale_method<>1 Then
    If QQpay_enable=1 Then	
        ' 获取服务器日期，格式YYYYMMDD
        Function CFTGetServerDate 
            Dim strTmp, iYear,iMonth,iDate 
            iYear = Year(Date) 
            iMonth = Month(Date) 
            iDate = Day(Date) 
            strTmp = CStr(iYear)
            If iMonth < 10 Then 
                strTmp = strTmp & "0" & Cstr(iMonth)
            Else 
                strTmp = strTmp & Cstr(iMonth)
            End If 
            If iDate < 10 Then 
                strTmp = strTmp & "0" & Cstr(iDate) 
            Else 
                strTmp = strTmp & Cstr(iDate) 
            End If 
            CFTGetServerDate = strTmp 
        End Function
        Dim request_text
        Dim md5_sign

        ' 下面是请求参数
        cmdno		= "1"				' 财付通支付为"1" (当前只支持 cmdno=1)	
        bill_date	= CFTGetServerDate	' 交易日期 (yyyymmdd)	
        bank_type	= "0"				' 银行类型:	0		财付通
                                        '			1001	招商银行   
                                        '			1002	中国工商银行  
                                        '			1003	中国建设银行  
                                        '			1004	上海浦东发展银行   
                                        '			1005	中国农业银行  
                                        '			1006	中国民生银行  
                                        '			1008	深圳发展银行   
                                        '			1009	兴业银行   

        bargainor_id = QQpay_spid				' 商户号
        sp_billno	 = "0000"&orders_id		' 商户生成的订单号(最多32位)	

        ' 重要:
        ' 交易单号(28位): 商户号(10位) + 日期(8位) + 流水号(10位), 必须按此格式生成, 且不能重复
        ' 如果sp_billno超过10位, 则截取其中的流水号部分加到transaction_id后部(不足10位左补0)
        ' 如果sp_billno不足10位, 则左补0, 加到transaction_id后部
        transaction_id = QQpay_spid & bill_date & sp_billno 

        total_fee	 = total_amount*100				' 总金额, 分为单位
        fee_type	 = "1"				' 货币类型: 1 – RMB(人民币) 2 - USD(美元) 3 - HKD(港币)
        return_url	 = "http://www.cardinchina.com/qq_notify.asp" ' 财付通回调页面地址, 推荐使用ip地址的方式(最长255个字符)

        ' 生成MD5签名    
        sign_text = "cmdno=" & cmdno & "&date=" & bill_date & "&bargainor_id=" & bargainor_id &_
            "&transaction_id=" & transaction_id & "&sp_billno=" & sp_billno &_
            "&total_fee=" & total_fee & "&fee_type=" & fee_type & "&return_url=" & return_url &_
            "&attach=" & attach & "&key=" & QQpay_key

        md5_sign = UCase(MD5(sign_text))        ' 转换为大写
    %>
    <tr>
        <td align="center">
            <font color='red'>国内银行卡</font>
        </td>
        <td>
            无
        </td>
        <td>
            <%=total_amount%>元人民币（RMB)
        </td>
        <td>
            <table class="unnamed1" width="100%" border="0" cellspacing="0">
                <form method="post" action="https://www.tenpay.com/cgi-bin/v1.0/pay_gate.cgi">
                <tr>
                    <td>
                        <input type="hidden" name="cmdno" value="<%=cmdno%>">
                        <input type="hidden" name="date" value="<%=bill_date%>">
                        <input type="hidden" name="bank_type" value="<%=bank_type%>">
                        <input type="hidden" name="desc" value="游戏卡">
                        <input type="hidden" name="purchaser_id" value="">
                        <input type="hidden" name="bargainor_id" value="<%=bargainor_id%>">
                        <input type="hidden" name="transaction_id" value="<%=transaction_id%>">
                        <input type="hidden" name="sp_billno" value="<%=sp_billno%>">
                        <input type="hidden" name="total_fee" value="<%=total_fee%>">
                        <input type="hidden" name="fee_type" value="<%=fee_type%>">
                        <input type="hidden" name="return_url" value="<%=return_url%>">
                        <input type="hidden" name="attach" value="">
                        <input type="hidden" name="sign" value="<%=md5_sign%>">
                        <input name="Submit" type="submit" value="财付通">
                    </td>
                </tr>
                </form>
            </table>
        </td>
    </tr>
    <%
    End If
End If
    %>
</table>
<!--#include file="bottom.asp"-->
